package com.jenings.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

//标记表名(此注解为必须，下面的字段注解可选)
@TableName("users")
public class Users {
    //标记数据表主键
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;
    private String  userNick;
    private String  userName;
    private String  userPhone;
    private String  userSno;
    private String  userPwd;
    private String  userTime;
    private String  userImg;
    //标记数据表中不存在的字段
    //@TableField(exist = false)

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserNick() {
        return userNick;
    }

    public void setUserNick(String userNick) {
        this.userNick = userNick;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserSno() {
        return userSno;
    }

    public void setUserSno(String userSno) {
        this.userSno = userSno;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public String getUserTime() {
        return userTime;
    }

    public void setUserTime(String userTime) {
        this.userTime = userTime;
    }

    public String getUserImg() {
        return userImg;
    }

    public void setUserImg(String userImg) {
        this.userImg = userImg;
    }

    @Override
    public String toString() {
        return "Users{" +
                "userId=" + userId +
                ", userNick='" + userNick + '\'' +
                ", userName='" + userName + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", userSno='" + userSno + '\'' +
                ", userPwd='" + userPwd + '\'' +
                ", userTime='" + userTime + '\'' +
                ", userImg='" + userImg + '\'' +
                '}';
    }
}
